﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Borton.Beans
{
    class Borton : Bean
    {

        public Borton()
        {
            tableName = "Borton";
            fields = new Field[] {
                new Field("id", FieldType.NUMBER),
                new Field("nev", FieldType.STRING),
                new Identifier("orszag_id", typeof(Orszag)),
                new Identifier("igazgato_id", typeof(Igazgato))
            };
            referringBeans = new Bean[] {
                new JoinBean_("szemely_id", typeof(Igazgato)),
                new Reszleg(),
                new Pszihologus()
            };
        }

        public override object Clone()
        {
            return new Borton();
        }
    }
}
